package com.qf.czh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloController {
    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        System.out.println("hello");
        return "hello";
    }

    @RequestMapping("/unauthorized")
    public String unauthorized(){
        System.out.println("unauthorized");
        return "unauthorized";
    }

}
